#!/usr/bin/env python
#-*- coding:utf-8 -*-
# author:Vergil
# datetime:2018/12/15 0:49
# software: PyCharm
from ..models import MusicList, MusicCategory
from django import template

register = template.Library()
@register.simple_tag()
def get_music_categories():
    return MusicCategory.objects.all()